package com.jzo2o.market.controller.consumer;

import com.jzo2o.market.model.dto.response.CouponInfoResDTO;
import com.jzo2o.market.service.ICouponService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 用户端优惠券相关接口
 *
 * @Author yzx
 * @Date 2024/12/16 11:06
 */


@RestController("consumerCouponController")
@RequestMapping("/consumer/coupon")
public class CouponController {
    @Resource
    private ICouponService couponService;
    @GetMapping("/my")
    public List<CouponInfoResDTO> myList(Integer status,Integer lastId ) {
        return couponService.myList(status,lastId);
    }
}
